package com.hvisions.shiro;

import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Component;


@Component("perms")
public class PermsService
{
    public boolean hasPerm(String permission)
    {
        System.out.println("PermsService.hasPerm 验证权限");
        return SecurityUtils.getSubject().isPermitted(permission);
    }
}
